package com.ts.main.mini.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ts.main.mini.entity.UserAddressEntity;
import com.ts.main.mini.vo.UserAddressVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author lk
* @createDate 2025-05-16 15:12:07
*/
public interface UserAddressMapper extends BaseMapper<UserAddressEntity> {

    List<UserAddressVo> getAddressPage(@Param("userId") Integer userId);

    void updateAddressIsDefault(@Param("userId") Integer userId,
                                @Param("userAddressId") Integer userAddressId);


}




